import random
money=10000
for  user in range(1,21):
    jixiaofen=random.randint(1, 10)
    if jixiaofen>5:
        money-=1000
        print(f"编号是{user},发了1000元，剩余{money}")
    else:
        print("不发工资，下一位")
    if money<=0:
        print("工资发完了")

        break




